﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="list.aspx.vb" Inherits="webass2._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <p>
        &nbsp;</p>
<p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="CookingDataSource" AllowSorting="True" BackColor="White" 
            BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3">
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="details.aspx?={0}" DataTextField="Dish_Name" 
                    HeaderText="DishName" />
                <asp:BoundField DataField="Dish_Origin" HeaderText="Dish_Origin" 
                    SortExpression="Dish_Origin" />
                <asp:BoundField DataField="Dish_Price" HeaderText="Dish_Price" 
                    SortExpression="Dish_Price" />
                <asp:ImageField DataImageUrlField="Dish_Picture" HeaderText="Dish Image">
                    <ControlStyle CssClass="dishPictures" />
                </asp:ImageField>
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>
        <asp:SqlDataSource ID="CookingDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:CookingConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:CookingConnectionString.ProviderName %>" 
            
            SelectCommand="SELECT [Dish_Name], [Dish_Origin], [Dish_Price], [Dish_Picture], [ID] FROM [Dishes]">
        </asp:SqlDataSource>
</p>
<p>
        &nbsp;</p>
</asp:Content>
